]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Don't push window thumbs over when workspaces are invisible
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 May 2013 01:10:58 +0000 (21:10 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 May 2013 17:04:45 +0000 (13:04 -0400)
Make the sliding control invisible when the thumbnails box is as well.

https://bugzilla.gnome.org/show_bug.cgi?id=701167

js/ui/overviewControls.js

index 33690d7dab9d61f81173d92c0f917b4cdde67b4c..b04008de13efae3c452b74b85a8c77015e6a1b87 100644 (file)
@@ -1,5 +1,6 @@
 // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
 
+const GObject = imports.gi.GObject;
 const Clutter = imports.gi.Clutter;
 const Lang = imports.lang;
 const Meta = imports.gi.Meta;
@@ -246,6 +247,7 @@ const ThumbnailsSlider = new Lang.Class({
 
         Main.layoutManager.connect('monitors-changed', Lang.bind(this, this.updateSlide));
         this.actor.connect('notify::hover', Lang.bind(this, this.updateSlide));
+        this._thumbnailsBox.actor.bind_property('visible', this.actor, 'visible', GObject.BindingFlags.SYNC_CREATE);
     },
 
     _getAlwaysZoomOut: function() {